package com.kaifamiao.month03.day0331.bank.dao;

import com.kaifamiao.month03.day0331.bank.model.Statement;
import com.kaifamiao.month03.day0331.bank.util.ArrayListForStatement;

public class StatementDao{

    ArrayListForStatement statementList = new ArrayListForStatement();

    // 存储流水记录
    public void save(Statement statement) {
        statementList.add(statement);
    }

    // 显示所有流水
    public Statement[] findAll(){
        return statementList.findAll();
    }

    // 显示用户个人流水
    public Statement[] showStatement(long card){
        return statementList.indexOf(card);
    }

}
